package fristphase.day9_23.submarine;

import javax.swing.*;

public class Bomb extends SeaObject{

    public Bomb(int x,int y){
        super(20,20,x,y,3);
    }

    public void move(){
        setY(getY() + getSpeed());
    }

    public boolean isBound(){
        return getY() > World.HEIGHT;
    }

    public ImageIcon getImage(){
        return Images.bomb;
    }
}
